home *** CD-ROM | disk | FTP | other *** search
- Path: mozo.cc.purdue.edu!news
- From: Aria Prima Novianto <aria@cs.purdue.edu>
- Newsgroups: comp.lang.c++
- Subject: Array Initialization: C to C++
- Date: 10 Apr 1996 17:55:33 -0500
- Organization: Purdue University Department of Computer Sciences
- Sender: aria@al-masjid.cs.purdue.edu
- Message-ID: <m1ivf7heoq.fsf@al-masjid.cs.purdue.edu>
- NNTP-Posting-Host: apollo.cs.purdue.edu
- X-Newsreader: Gnus v5.0.15
-
-
- Hi, any of you know how to do this in C++.
-
- int array[] = { ['a'] = 1, ['b'] = 2 };
-
- It compiled fine using gcc, but not g++.
- It gave me parse error before '='.
-
- Thanks,
- Aria
-
-